libotutil: Add ot_keyfile_get_value_with_default_group_optional()
authorRobert Fairley <rob.t.fairley@gmail.com>
Wed, 20 Feb 2019 05:56:54 +0000 (00:56 -0500)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 1 Mar 2019 21:20:35 +0000 (21:20 +0000)
commit99cf13b22519e88d6cce22379d67b50bf6a2aa6b
treee189cd106b8de0d122e34bdff3fda866f7f78d2b
parent91892e3c3f31d104796584c6975f4a198faf750f
libotutil: Add ot_keyfile_get_value_with_default_group_optional()

Add ot_keyfile_get_value_with_default_group_optional() which allows
getting values from keys where the group is optional in the config
file. This is preparatory to add the sysroot.bootloader repo config
key, where the sysroot group is optional.

Closes: #1814
Approved by: jlebon
src/libotutil/ot-keyfile-utils.c
src/libotutil/ot-keyfile-utils.h
tests/test-keyfile-utils.c